package com.xbaoziplus.simple_spring.core.io;

/**
 * @author xbaozi
 * @version 1.0
 * @interfacename ResourceLoader
 * @date 2023-05-07  13:45
 * @description 资源加载器
 */
public interface ResourceLoader {

    /**
     * Pseudo URL prefix for loading from thr class path: "classpath:"
     */
    String CLASSPATH_URL_PREFIX = "classpath:";

    /**
     * @description 定义获取资源的接口，在接口中传递资源地址
     * @author xbaozi
     * @date 2023/5/7 13:50
     * @param location  资源地址
     * @return Resource
     **/
    Resource getResource(String location);
}
